//
//  PrintModels.m
//  MBObjectServer
//
//  Created by Juvid on 14-3-12.
//  Copyright (c) 2014年 MBpayer. All rights reserved.
//

#import "PrintModels.h"

@implementation PrintModels
+(id) getEPOSPrintModelFromDictionary :(NSDictionary *) dic{
    PrintModels * printModels = [[PrintModels alloc]init] ;
    printModels.ProdName = [dic objectForKey:@"ProdName"];
    printModels.ProdID = [dic objectForKey:@"ProdID"];
    printModels.ProdSeason = [dic objectForKey:@"ProdSeason"];
    printModels.ColorName = [dic objectForKey:@"ColorName"];
    printModels.SizeName = [dic objectForKey:@"SizeName"];
    printModels.IsSelected = [dic objectForKey:@"IsSelected"];
    printModels.EntityState = [dic objectForKey:@"EntityState"];
    printModels.Selected = [dic objectForKey:@"Selected"];
    printModels.ProdClsID = [dic objectForKey:@"ProdClsID"];
    printModels.ProdYear = [dic objectForKey:@"ProdYear"];
    return printModels ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSPrintModel:(PrintModels *) printModels {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:printModels.ProdName forKey:@"ProdName"];
    [dic setObject:printModels.ProdID forKey:@"ProdID"];
    [dic setObject:printModels.ProdSeason forKey:@"ProdSeason"];
    [dic setObject:printModels.ColorName forKey:@"ColorName"];
    [dic setObject:printModels.SizeName forKey:@"SizeName"];
    [dic setObject:printModels.IsSelected forKey:@"IsSelected"];
    [dic setObject:printModels.EntityState forKey:@"EntityState"];
    [dic setObject:printModels.Selected forKey:@"Selected"];
    [dic setObject:printModels.ProdClsID forKey:@"ProdClsID"];
    [dic setObject:printModels.ProdYear forKey:@"ProdYear"];
    return dic ;
}
@end
